package com.ray.monitor.util;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

import com.ray.api.service.UcenterApiService;
import com.ray.auth.system.table.entity.Dict;
import com.xiaoleilu.hutool.util.ObjectUtil;



public class DictLoadUtil {

 public static  Map<String, List<Dict>> loadDict(UcenterApiService ucenterApiService, String... dictTypes) {
	//缓存
	Map<String,List<Dict>> result = new HashMap<String,List<Dict>>();
	if(ObjectUtil.isNotNull(dictTypes)){
		for(String type:dictTypes){
			List<Dict> list = ucenterApiService.queryDictsByDictType(type);	
			result.put(type, list);
		}
	}

	return result;
}


	
}
